package com.joker.demo.core.domain.dto;


import java.io.Serializable;

/**
 * 任务执行参数PO
 * @author : feixiang.li
 * @since : 2025-07-24 14:10
 */
public class JobExecutorParamsDTO implements Serializable {


    /**
     * 任务分片参数索引
     */
    private Integer shardingParamIndex;

    /**
     * 任务分片参数
     */
    private String shardingParam;


    /**
     * 前置任务执行的结果，用于任务流式任务之间传递数据
     */
    private String prevTaskResult;

    @Override
    public String toString() {
        return "JobExecutorParamsDTO{" +
                "shardingParamIndex=" + shardingParamIndex +
                ", shardingParam='" + shardingParam + '\'' +
                ", prevTaskResult='" + prevTaskResult + '\'' +
                '}';
    }

    public Integer getShardingParamIndex() {
        return shardingParamIndex;
    }

    public void setShardingParamIndex(Integer shardingParamIndex) {
        this.shardingParamIndex = shardingParamIndex;
    }

    public String getShardingParam() {
        return shardingParam;
    }

    public void setShardingParam(String shardingParam) {
        this.shardingParam = shardingParam;
    }

    public String getPrevTaskResult() {
        return prevTaskResult;
    }

    public void setPrevTaskResult(String prevTaskResult) {
        this.prevTaskResult = prevTaskResult;
    }
}
